import resource from '/static/index';

const parseRes = () => {
    for(let key in resource) {
        if(key === 'default') continue;
        resource[key].forEach(ele => {
            ele.url = require(`/static/${key}/${ele.name}.png`),
            ele.name = `${key}_${ele.name}`;
            ele.cont = key;
        });
    };
    console.log(123)
    return resource;
};

const parsedRes = parseRes()

export default parsedRes;